package com.param_validate_demo.model;

import lombok.Data;

@Data
public class Result {

    private String code;

    private String message;

    private Result() {
    }

    public static Result fail() {
        return new Result();
    }

    public Result code(String code) {
        this.code = code;
        return this;
    }

    public Result message(String message) {
        this.message = message;
        return this;
    }
}
